Search
InternalUtils.LinearGradient Method (Single, Object[])
See Also
 





Creates a linear gradient brush with the specified blend and orientation angle.

Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming

 Syntax

C#  Copy Code

public static LinearGradientBrush LinearGradient (
    float angle,
    Object[] positionsAndColors
)

Visual Basic  Copy Code

Public Shared Function LinearGradient( _
    angle As Single, _
    positionsAndColors() As Object _
) As LinearGradientBrush

 Parameters

angle
The angle of the linear gradient.
positionsAndColors
An alternating sequence of float and Color pairs where each pair defines a gradient stop. The positions in the sequence need to be in ascending order.

 Return Value

An instance of the LinearGradientBrush class corresponding to the specified settings.

 See Also